
 beginoutdoorscript;

 variables;

int i,j,k,r1,choice;

 body;

 beginstate INIT_STATE;

	break;

 beginstate START_STATE;

	break;

 beginstate 10;
	message_dialog("You find an entrance to a cave that has clearly been inhabited by goblins in the past month. Unfortunately, the only thing the goblins left behind were their trash pits.","");
 break;

 beginstate 11;
	if (get_flag(200,1) == 1)
		end();
	reset_dialog();
	add_dialog_str(0,"Faerengrove is a typical backwater. The land is not fertile, but it's not actually barren either. Small swampy areas are everywhere and by the sound of it, there is also some wildlife present.",0);
	add_dialog_str(1,"One thing that is missing from the roads is an Empire patrol. Whatever roams the lands near Fort Laramie, it has been able to do so freely for more than a week now.",0);
	add_dialog_choice(0,"OK.");
	choice = run_dialog(1);
	if (choice == 1)
		set_flag(200,1,1);

 break;

 beginstate 12;
	message_dialog("It was easy to recognize what these humanoids were from a distance, goblins. They are quite sure of themselves when they march on the roads like this. As soon as they see you, they cry out in joy and charge at you.","You draw your weapons.");
	set_out_fight_town_loaded(1014);
 break;

 beginstate 13;
	message_dialog("The fight is over; you clean your weapons. These goblins were not the regular kind. They looked like normal goblins, but somehow they were faster and stronger.","");
 break;

 beginstate 14;
	if (get_flag(0,15) == 0) {
		message_dialog("It is surprising to find an undisturbed farm out here. You have a brief chat with the farmers. They know nothing of the goblins; in fact they haven't seen goblins in months, and when they last met goblins they assure you they were easily chased away.","You have a nice homemade meal and continue your journey.");
		set_flag(0,15,1);
}
 break;

 beginstate 15;
	message_dialog("You have entered the hillside where the goblin camp is supposed to be. A group of goblins is patrolling the hills, right now. They wave their clubs and daggers at you furiously and charge; confident of their victory.","");
 break;

 beginstate 16;
	reset_dialog();
	add_dialog_str(0,"The climb higher has lead you into more goblins. At first you think they too will attack you right away, but then a goblin, wearing some kind of hood, approaches you. _Humunz! Turn bak! We not want fight you!_",0);
	add_dialog_str(1,"_Leeve mantainz now! We not hurt you!_ The goblins must think you are a threat for saying something like this. There aren't that many of them though and they are a threat to Faerengrove.",0);
	add_dialog_choice(0,"Attack them.");
	add_dialog_choice(1,"Turn back.");
	choice = run_dialog(1);
	if (choice == 1) {
		message_dialog("The hooded goblin screams something to his brethren and to your shock, casts a fire bolt at your party!","");
		damage_char(1000,25,1);
		outdoor_enc_result(3);
		create_out_spec_enc(1);
}
	if (choice == 2) {
		message_dialog("The hooded goblin looks relieved as you turn away. Suddenly the goblin begins chanting madly. You turn around to see that the goblin has summoned a pack of wolves to help him and his brethren destroy you.","");
		outdoor_enc_result(3);
		create_out_spec_enc(2);
}
 break;

 beginstate 17;
	if (get_flag(200,4) == 0) {
		message_dialog("You are beginning to question the strategic brilliance of Commander Griffith. It's not enough that he abandons the guard stations, in the event of an emergency, but this guard post is built in a ridiculous place.","The post has been built on flatlands. Also, high mountains are blocking its view to the north. You take a look inside, the goblins have been here, judging from the stench at least. You nothing of use.");
		set_flag(200,4,1);
}
break;

 beginstate 18;
	message_dialog("You observe the body of the goblin shaman. You could have sworn it was glowing lightly when it was still alive. In fact, you could have sworn all the goblins were glowing. But now as you inspect the bodies, all you see is skinny goblin flesh.","It is also disturbing that a goblin could master spellcraft like this. You always thought goblins were too dumb to learn magic.");
 break;


	